import React from "react";
import { useContext } from "react";
import { RandomFactorContext, UserContext } from "../context";

export default function UserInfo() {
  const user = useContext(UserContext);
  const {value,setValue} = useContext(RandomFactorContext);
  return (
    <div>
      UserInfo:{user.username} {value}
    </div>
  );
}
